package com.sy.demo;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class B {

	private A a;

	@Autowired
	public void setA(A a) {
		this.a = a;
	}

	public B() {
		System.out.println(" b 被创建了 ");
	}
}
